GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Branch master (81a8a0)
by Vincent
02:52
created

module.exports   B

Complexity

Conditions 2
Paths 2

Size

Total Lines 29

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 29
rs 8.8571
c 0
b 0
f 0
1
'use strict';
2
3
var merge = require('merge-stream');
4
5
module.exports = function (gulp, paths, plugins, options) {
0 ignored issues
show
Unused Code introduced by
The parameter options is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
6
    var filterByExtension = function (extension) {
7
        return plugins.filter('**/*.' + extension);
8
    };
9
10
    return function () {
11
        var mainFiles = plugins.mainBowerFiles({
12
            paths: {bowerDirectory: paths.BOWER_PATH}
13
        });
14
15
        if (!mainFiles.length) {
16
            console.log('No bower files found');
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
17
18
            return false;
19
        }
20
21
        gulp.src(mainFiles)
22
            .pipe(plugins.plumber())
23
            .pipe(filterByExtension('js'))
24
            .pipe(plugins.sourcemaps.init())
25
            .pipe(plugins.concat('dist/js/vendor.js'))
26
            .pipe(plugins.uglify())
27
            .pipe(plugins.sourcemaps.write('./'))
28
            .pipe(gulp.dest(paths.THEME_PATH));
29
30
        gulp.src(mainFiles)
31
            .pipe(plugins.plumber())
32
            .pipe(filterByExtension('css'))
33
            .pipe(plugins.sourcemaps.init())
34
            .pipe(plugins.concat('dist/css/vendor.css'))
35
            .pipe(plugins.sourcemaps.write('./'))
36
            .pipe(plugins.browserSync.reload({stream: true}))
37
            .pipe(gulp.dest(paths.THEME_PATH))
0 ignored issues
show
Best Practice introduced by
There is no return statement in this branch, but you do return something in other branches. Did you maybe miss it? If you do not want to return anything, consider adding return undefined; explicitly.
Loading history...
38
    };
39
};